package com.qixin.api.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 企业给用户分配资金回收资金记录表
 * </p>
 *
 *
 * @author 吕正睿
 * @since 2018-10-29
 */
@TableName("pt_money_info")
public class PtMoneyInfo extends Model<PtMoneyInfo> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Long createTime;
    /**
     * 本次记录产生金额
     */
	@TableField("moeny")
	private BigDecimal moeny;
    /**
     * 企业ID
     */
	@TableField("part_id")
	private Long partId;
    /**
     * 企业下人员ID
     */
	@TableField("people_id")
	private Long peopleId;
    /**
     * 分配还是回收  1 分配 2回收
     */
	@TableField("flag")
	private Integer flag;
	/**
	 * 车辆ID
	 */
	@TableField("car_id")
	private Long carId;

	/**
	 *  车牌
	 */
	@TableField("car_number")
	private String carNumber;

	/**
	 *  企业ID
	 */
	@TableField("pt_id")
	private String ptId;
	/**
	 * 企业名
	 */
	@TableField(exist = false)
	private String ptname;

	public String getCallPhone() {
		return callPhone;
	}

	public void setCallPhone(String callPhone) {
		this.callPhone = callPhone;
	}

	/**
	 * 联系人手机号
	 */
	@TableField(exist = false)
	private String callPhone;

	public String getCallName() {
		return callName;
	}

	public void setCallName(String callName) {
		this.callName = callName;
	}
	/**
	 * 车型号
	 */
	@TableField(exist = false)
	private String carModel;

	public String getCarModel() {
		return carModel;
	}

	public void setCarModel(String carModel) {
		this.carModel = carModel;
	}

	/**
	 * 联系人姓名
	 */
	@TableField(exist = false)
	private String callName;

	public String getPtname() {
		return ptname;
	}

	public void setPtname(String ptname) {
		this.ptname = ptname;
	}

	public String getPtId() {
		return ptId;
	}

	public void setPtId(String ptId) {
		this.ptId = ptId;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Long getCarId() {
		return carId;
	}

	public void setCarId(Long carId) {
		this.carId = carId;
	}

	public String getCarNumber() {
		return carNumber;
	}

	public void setCarNumber(String carNumber) {
		this.carNumber = carNumber;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public BigDecimal getMoeny() {
		return moeny;
	}

	public void setMoeny(BigDecimal moeny) {
		this.moeny = moeny;
	}

	public Long getPartId() {
		return partId;
	}

	public void setPartId(Long partId) {
		this.partId = partId;
	}

	public Long getPeopleId() {
		return peopleId;
	}

	public void setPeopleId(Long peopleId) {
		this.peopleId = peopleId;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "PtMoneyInfo{" +
				"id=" + id +
				", createTime=" + createTime +
				", moeny=" + moeny +
				", partId=" + partId +
				", peopleId=" + peopleId +
				", flag=" + flag +
				", carId=" + carId +
				", carNumber='" + carNumber + '\'' +
				", ptId='" + ptId + '\'' +
				", ptname='" + ptname + '\'' +
				", callPhone='" + callPhone + '\'' +
				", carModel='" + carModel + '\'' +
				", callName='" + callName + '\'' +
				'}';
	}
}
